export const ResultError = (str: string = 'error') => ({
  code: 500,
  msg: str,
  data: '系统错误',
});

export const ResultSuccess = (data: unknown) => ({
  code: 200,
  msg: 'success',
  data,
});

export const ResultMsg = (msg: string) => ({
  code: 200,
  msg: msg,
  data: '',
});
